export function debounce(fun, wait) {
  let timer;
  return function() {
    console.log(1)
    if(timer) clearTimeout(timer)
    timer = setTimeout(fun,wait)
  }
}
